home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5934 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newsfeed.direct.ca!usenet
  2. From: qjackson@direct.ca
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Escape Sequences in c++
  5. Date: Wed, 07 Feb 1996 15:46:08 GMT
  6. Organization: Parsepolis Software
  7. Message-ID: <4fahdh$o50@aphex.direct.ca>
  8. References: <3113aa29.14180305@news.flex.net>
  9. Reply-To: qjackson@direct.ca
  10. NNTP-Posting-Host: 204.174.248.79
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Awitas@flex.net wrote:
  14.  
  15. >    Does anyone know how to use the Ansi.sys escape sequences in
  16. >c++? Specifically the cursor-control sequences. Any help would be
  17. >greatly appreciated. 
  18.  
  19. >Adam Witas
  20. >awitas@flex.net
  21.  
  22. Try:
  23.  
  24. #define CLS cout << "\x1B[2J"
  25. #define LOCATE(row, col)  cout << "\x1B[" << row << ";" << col << "H"
  26.  
  27. This gives you a good place to start....  (The rest are fairly
  28. similarly done.)
  29.  
  30.  
  31. Cheers,
  32.  
  33.  
  34.  
  35.  
  36.  
  37. --                           
  38.                            | 
  39.     Parsepolis Software    |   Quinn Tyler Jackson
  40.         "ParseCity"        |     (aka 'Jamshid')
  41. >--------------------------|   qjackson@direct.ca
  42.                            |---------------------->
  43.  
  44.